import http from '../common/http'


//修改
export const update = (params) => {
  const url = `commonController/update`
  return http.post(url,
    params
  )
}

//分页查询
export const page = (params) => {
  const url = `commonController/page`
  return http.post(url,
    params
  )
}

//分组查询
export const groupBy = (params) => {
  const url = `commonController/groupBy`
  return http.post(url,
    params
  )
}

export const exportData = (params) => {
  const url = `commonController/exportData`
  return http.post(url,
    params
  )
}

//批量删除
export const batchDelete = (params) => {
  const url = `commonController/batchDelete`
  return http.post(url,
    params
  )
}

//打开文件
export const openFile = (params) => {
  const url = `commonController/openFile/` + params
  return http.get(url,
    params
  )
}